package com.woniuxy.store.client;

import com.woniuxy.store.client.param.tableParam.AddDiningAreaParams;
import com.woniuxy.store.client.param.tableParam.LoadAllDiningAreaParams;
import com.woniuxy.store.client.param.tableParam.ModifyDiningAreaParams;
import common.WoniuPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "diningAreaClient",name = "store",path="/store/table")
public interface DiningAreaClient {

    @GetMapping("/loadAllDiningArea")
    public Result loadAllDiningArea(@SpringQueryMap LoadAllDiningAreaParams loadAllDiningAreaParams);

    @PostMapping("/addDiningArea")
    public Result addDiningArea(@RequestBody AddDiningAreaParams addDiningAreaParams);

    @PutMapping("/modifyDiningArea")
    public Result modifyDiningArea(@RequestBody ModifyDiningAreaParams modifyDiningAreaParams);

    @DeleteMapping("/deleteDiningArea")
    public Result deleteDiningArea(@RequestParam("diningAreaId")Integer diningAreaId);
}
